package b.sync.domain

import zio._

object ZioExtractor {
  type ZioExtractor = Has[Service]
  trait Service {
    def extract[R](from: Long): Task[List[TSync[R]]]
  }
  def extract[R](from: Long): RIO[ZioExtractor, List[TSync[R]]] =
    ZIO.accessM(_.get.extract(from))
}
